package modeleIndexation;

import java.util.ArrayList;
import java.util.List;

public class InfosTermeIndex {
	private NoeudIndex noeud;
	private List<Integer> positions;
	
	public InfosTermeIndex(NoeudIndex noeud) {
		this.noeud=noeud;
		this.positions = new ArrayList<Integer>();
	}
	
	public void addPosition(int pos) {
		this.positions.add(pos);
	}

	public NoeudIndex getNoeud() {
		return noeud;
	}

	public List<Integer> getPositions() {
		return positions;
	}
	
	public String toString () {
		String toreturn = "";
		for (int i=0; i<positions.size();i++) {
			toreturn += positions.get(i) + " ";
		}
		return toreturn;
	}
}